/*
 * @Author: 刘润泽
 * @Date: 2023-02-03 18:07:10
 * @LastEditors: 刘润泽
 * @LastEditTime: 2023-02-04 22:33:46
 * @Description: 
 */
package server.business.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import server.business.pojo.BloodSource;
import server.business.service.BloodSourceService;
import server.business.utils.results.lrz.Result;

@RestController
@RequestMapping("/bloodSource")
public class BloodSourceController {
    @Autowired
    BloodSourceService bloodSourceService;

    @GetMapping(value = "/normal/getName")
    public Result getName() {
        List<BloodSource> bloodSources = bloodSourceService.list();
        return Result.success(bloodSources);
    }
}